using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.IO;
using LispLib;

namespace GeneticAlgorithm.CP3.BitString
{
    class Population : Population<int[], Interpreter.Pair>
    {
        public Population()
            : base(5, 0.25f)
        {
            // HACK hard code intial population
            //byte[] bytes = new byte[2] { (byte)Global.random.Next(257), (byte)Global.random.Next(257) };
            // (+ (+ time time) time)
            int[] g1 = { 10, 12, 10, 12, 0, 0, 11, 0, 11 };
            members.Add(new Individual(g1));

            // (+ (- time time) time)
            int[] g2 = { 10, 12, 10, 13, 0, 0, 11, 0, 11 };
            members.Add(new Individual(g2));

            // (+ (* time time) time)
            int[] g3 = { 10, 12, 10, 15, 0, 0, 11, 0, 11 };
            members.Add(new Individual(g3));

            // (- (+ time time) time)
            int[] g4 = { 10, 13, 10, 12, 0, 0, 11, 0, 11 };
            members.Add(new Individual(g4));

            // (- (- time time) time)
            int[] g5 = { 10, 13, 10, 13, 0, 0, 11, 0, 11 };
            members.Add(new Individual(g5));


        }
    }
}
